Package org.dogtagpki.client
Class SSLSocketFactory
java.lang.Object
org.dogtagpki.client.SSLSocketFactory
- All Implemented Interfaces:
org.apache.http.conn.socket.ConnectionSocketFactory
,org.apache.http.conn.socket.LayeredConnectionSocketFactory
public class SSLSocketFactory
extends Object
implements org.apache.http.conn.socket.LayeredConnectionSocketFactory
This class provides blocking socket factory for PKIConnection based on SSLSocket.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket
(int connTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) createLayeredSocket
(Socket sock, String remoteHost, int port, org.apache.http.protocol.HttpContext context) createSocket
(org.apache.http.protocol.HttpContext arg0)
-
Constructor Details
-
SSLSocketFactory
-
-
Method Details
-
createSocket
- Specified by:
createSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Throws:
IOException
-
createLayeredSocket
public Socket createLayeredSocket(Socket sock, String remoteHost, int port, org.apache.http.protocol.HttpContext context) throws IOException, UnknownHostException - Specified by:
createLayeredSocket
in interfaceorg.apache.http.conn.socket.LayeredConnectionSocketFactory
- Throws:
IOException
UnknownHostException
-
connectSocket
public Socket connectSocket(int connTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException, UnknownHostException - Specified by:
connectSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Throws:
IOException
UnknownHostException
-